//
//  ICMHeaderView.h
//  ICrEAM
//
//  Created by rainimute on 16/10/31.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol ICMHeaderViewDelegate <NSObject>

@optional
- (void)headerViewDidSelectedButtonAtIndex:(NSInteger)index;

@end

@interface ICMHeaderView : UIView

@property (nonatomic, assign) NSInteger selectedIndex;

@property (nonatomic, weak) id<ICMHeaderViewDelegate>delegate;

+ (instancetype)createHeaderViewWithFrame:(CGRect)frame andTitles:(NSArray*)titles andType:(NSString *)type;

@end
